import { Component, ViewChild,OnInit,ChangeDetectorRef } from '@angular/core';
import {MatTreeNestedDataSource} from '@angular/material/tree';
import {NestedTreeControl} from '@angular/cdk/tree';
import { HttpClient } from '@angular/common/http';
import lodash from 'lodash';
import { MatTree } from '@angular/material/tree';

const RESULT={
	code: 200,
	success: true,
	data: [
			{
					id: '1',
					code: 'People01',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-03-10 17:28:32',
					updateTime: '2023-06-07 17:42:55',
					name: '人111',
					parentCode: null,
					sort: -1,
					note: '',
					fullPath: '/People01',
					children: [
							{
									id: '1608637514722353154',
									code: '1608637514722353154',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-12-30 09:34:05',
									updateTime: '2023-06-07 16:30:59',
									name: 'test12302-9',
									parentCode: 'People01',
									sort: null,
									note: null,
									fullPath: '/People01/1608637514722353154',
									children: [
											{
													id: '1608637571005718529',
													code: '1608637571005718529',
													isDeleted: 0,
													createUser: null,
													updateUser: null,
													createTime: '2022-12-30 09:34:18',
													updateTime: '2022-12-30 09:34:18',
													name: 'test12303',
													parentCode: '1608637514722353154',
													sort: null,
													note: null,
													fullPath: '/People01/1608637514722353154/1608637571005718529',
													children: null
											},
											{
													id: '1608642673305231361',
													code: '1608642673305231361',
													isDeleted: 0,
													createUser: null,
													updateUser: null,
													createTime: '2022-12-30 09:54:35',
													updateTime: '2022-12-30 09:54:35',
													name: 'test12304',
													parentCode: '1608637514722353154',
													sort: null,
													note: null,
													fullPath: '/People01/1608637514722353154/1608642673305231361',
													children: null
											}
									]
							},
							{
									id: '1646331550304083970',
									code: '1646331550304083970',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-04-13 09:56:43',
									updateTime: '2023-04-13 09:56:43',
									name: 'lgl的测试类目',
									parentCode: 'People01',
									sort: null,
									note: null,
									fullPath: '/People01/1646331550304083970',
									children: null
							},
							{
									id: '1660834091133108226',
									code: '1660834091133108226',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-05-23 10:24:38',
									updateTime: '2023-05-23 10:24:38',
									name: '青岛啤酒',
									parentCode: 'People01',
									sort: null,
									note: null,
									fullPath: '/People01/1660834091133108226',
									children: null
							}
					]
			},
			{
					id: '2',
					code: 'Area',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-03-10 17:28:32',
					updateTime: '2023-06-07 17:42:55',
					name: '地11',
					parentCode: null,
					sort: -1,
					note: '',
					fullPath: '/Area',
					children: null
			},
			{
					id: '3',
					code: 'Event',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-03-10 17:28:32',
					updateTime: '2023-06-07 16:30:59',
					name: '事件',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/Event',
					children: [
							{
									id: '21',
									code: 'EmergencyEvent',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-03-10 17:28:38',
									updateTime: '2022-03-10 17:28:38',
									name: '突发事件',
									parentCode: 'Event',
									sort: null,
									note: null,
									fullPath: '/Event/EmergencyEvent',
									children: null
							}
					]
			},
			{
					id: '4',
					code: 'Thing',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-03-10 17:28:32',
					updateTime: '2022-03-10 17:28:32',
					name: '物',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/Thing',
					children: [
							{
									id: '24',
									code: 'IOTFacilities',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-03-10 17:28:38',
									updateTime: '2022-03-10 17:28:38',
									name: 'IOT设施',
									parentCode: 'Thing',
									sort: null,
									note: null,
									fullPath: '/Thing/IOTFacilities',
									children: [
											{
													id: '103',
													code: 'GasEquipment',
													isDeleted: 0,
													createUser: null,
													updateUser: null,
													createTime: '2022-03-10 17:33:08',
													updateTime: '2022-03-10 17:33:08',
													name: '燃气类设备',
													parentCode: 'IOTFacilities',
													sort: null,
													note: null,
													fullPath: '/Thing/IOTFacilities/GasEquipment',
													children: null
											},
											{
													id: '104',
													code: 'GasFacilities',
													isDeleted: 0,
													createUser: null,
													updateUser: null,
													createTime: '2022-03-10 17:33:09',
													updateTime: '2022-03-10 17:33:09',
													name: '燃气设施',
													parentCode: 'IOTFacilities',
													sort: null,
													note: null,
													fullPath: '/Thing/IOTFacilities/GasFacilities',
													children: null
											}
									]
							},
							{
									id: '25',
									code: 'Land',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-03-10 17:28:39',
									updateTime: '2022-03-10 17:52:14',
									name: '土地',
									parentCode: 'Thing',
									sort: null,
									note: null,
									fullPath: '/Thing/Land',
									children: null
							},
							{
									id: '26',
									code: 'House',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-03-10 17:28:39',
									updateTime: '2023-06-07 16:30:59',
									name: '房屋',
									parentCode: 'Thing',
									sort: null,
									note: null,
									fullPath: '/Thing/House',
									children: [
											{
													id: '255',
													code: 'LogicBuilding',
													isDeleted: 0,
													createUser: null,
													updateUser: null,
													createTime: '2022-03-10 17:34:47',
													updateTime: '2022-03-10 17:34:47',
													name: '逻辑栋',
													parentCode: 'House',
													sort: null,
													note: null,
													fullPath: '/Thing/House/LogicBuilding',
													children: null
											}
									]
							},
							{
									id: '28',
									code: 'Vehicle',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-03-10 17:28:40',
									updateTime: '2023-06-07 16:30:59',
									name: '车辆',
									parentCode: 'Thing',
									sort: null,
									note: null,
									fullPath: '/Thing/Vehicle',
									children: [
											{
													id: '134',
													code: 'FireTruck',
													isDeleted: 0,
													createUser: null,
													updateUser: null,
													createTime: '2022-03-10 17:33:17',
													updateTime: '2022-03-10 17:33:17',
													name: '消防车',
													parentCode: 'Vehicle',
													sort: null,
													note: null,
													fullPath: '/Thing/Vehicle/FireTruck',
													children: null
											}
									]
							}
					]
			},
			{
					id: '8',
					code: 'System',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-03-10 17:28:34',
					updateTime: '2023-06-07 16:30:59',
					name: '系统',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/System',
					children: [
							{
									id: '211',
									code: 'systemSoftware',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-03-10 17:34:04',
									updateTime: '2023-06-07 16:30:59',
									name: '系统软件',
									parentCode: 'System',
									sort: null,
									note: null,
									fullPath: '/System/systemSoftware',
									children: [
											{
													id: '212',
													code: 'Aplicaton',
													isDeleted: 0,
													createUser: null,
													updateUser: null,
													createTime: '2022-03-10 17:34:04',
													updateTime: '2022-03-11 13:46:41',
													name: '应用软件',
													parentCode: 'systemSoftware',
													sort: null,
													note: null,
													fullPath: '/System/systemSoftware/Aplicaton',
													children: null
											}
									]
							},
							{
									id: '1529343762464890881',
									code: 'linkTrace',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-05-25 14:09:01',
									updateTime: '2022-05-25 14:09:01',
									name: '全链路跟踪',
									parentCode: 'System',
									sort: null,
									note: null,
									fullPath: '/System/linkTrace',
									children: null
							}
					]
			},
			{
					id: '1468136642319319042',
					code: 'ceshi',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2021-12-07 16:33:46',
					updateTime: '2023-06-07 17:42:55',
					name: '测试分类',
					parentCode: null,
					sort: -1,
					note: '测试分类2',
					fullPath: '/ceshi',
					children: [
							{
									id: '1468136756224032770',
									code: 'zhihuihuanwei',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2021-12-07 16:34:14',
									updateTime: '2021-12-10 14:40:48',
									name: '智慧环卫',
									parentCode: 'ceshi',
									sort: null,
									note: '智慧环卫',
									fullPath: '/ceshi/zhihuihuanwei',
									children: null
							},
							{
									id: '1468137061045075969',
									code: 'SmartEnergy',
									isDeleted: 0,
									createUser: '',
									updateUser: '',
									createTime: '2021-12-07 16:35:26',
									updateTime: '2021-12-10 14:40:48',
									name: '智慧能源',
									parentCode: 'ceshi',
									sort: -1,
									note: '智慧能源',
									fullPath: '/ceshi/SmartEnergy',
									children: null
							},
							{
									id: '1469112158761271298',
									code: 'spaceservice',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2021-12-10 09:10:08',
									updateTime: '2023-06-07 16:30:59',
									name: '空间服务',
									parentCode: 'ceshi',
									sort: null,
									note: null,
									fullPath: '/ceshi/spaceservice',
									children: [
											{
													id: '1469112336880779266',
													code: 'scene',
													isDeleted: 0,
													createUser: null,
													updateUser: null,
													createTime: '2021-12-10 09:10:50',
													updateTime: '2021-12-10 14:40:54',
													name: '场景',
													parentCode: 'spaceservice',
													sort: null,
													note: null,
													fullPath: '/ceshi/spaceservice/scene',
													children: [
															{
																	id: '1469112440496865282',
																	code: 'layer',
																	isDeleted: 0,
																	createUser: null,
																	updateUser: null,
																	createTime: '2021-12-10 09:11:15',
																	updateTime: '2021-12-10 14:40:56',
																	name: '图层',
																	parentCode: 'scene',
																	sort: null,
																	note: null,
																	fullPath: '/ceshi/spaceservice/scene/layer',
																	children: null
															}
													]
											}
									]
							},
							{
									id: '1469125674608115714',
									code: 'zhihuishuiwu',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2021-12-10 10:03:50',
									updateTime: '2021-12-10 14:40:48',
									name: '智慧水务',
									parentCode: 'ceshi',
									sort: null,
									note: '智慧水务',
									fullPath: '/ceshi/zhihuishuiwu',
									children: null
							},
							{
									id: '1470646522678706177',
									code: 'zhihuixiaofang',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2021-12-14 14:47:09',
									updateTime: '2021-12-14 14:47:09',
									name: '智慧消防',
									parentCode: 'ceshi',
									sort: null,
									note: '智慧消防',
									fullPath: '/ceshi/zhihuixiaofang',
									children: null
							},
							{
									id: '1520563637686398978',
									code: 'hyl',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-05-01 08:39:56',
									updateTime: '2022-05-01 08:39:56',
									name: '韩义龙测试',
									parentCode: 'ceshi',
									sort: null,
									note: null,
									fullPath: '/ceshi/hyl',
									children: null
							},
							{
									id: '1525888016607670274',
									code: 'EnergyIOT',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-05-16 01:17:07',
									updateTime: '2022-05-16 01:17:07',
									name: '能源IOT',
									parentCode: 'ceshi',
									sort: null,
									note: null,
									fullPath: '/ceshi/EnergyIOT',
									children: null
							},
							{
									id: '1527185570075086850',
									code: 'iot2688',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-05-19 15:13:08',
									updateTime: '2022-05-19 15:13:08',
									name: '2688测试',
									parentCode: 'ceshi',
									sort: null,
									note: null,
									fullPath: '/ceshi/iot2688',
									children: null
							},
							{
									id: '1529989020559192066',
									code: 'shenglue',
									isDeleted: 0,
									createUser: '',
									updateUser: '',
									createTime: '2022-05-27 08:53:03',
									updateTime: '2022-05-27 08:53:03',
									name: '省略2',
									parentCode: 'ceshi',
									sort: -1,
									note: '萨达2',
									fullPath: '/ceshi/shenglue',
									children: null
							}
					]
			},
			{
					id: '1525995626832916481',
					code: 'test0011',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-05-16 08:24:43',
					updateTime: '2022-05-16 08:24:43',
					name: 'test001',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/test0011',
					children: [
							{
									id: '1529270527534637058',
									code: 'zkl_test',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-05-25 09:18:00',
									updateTime: '2022-05-25 09:18:00',
									name: '张凯利测试',
									parentCode: 'test0011',
									sort: null,
									note: null,
									fullPath: '/test0011/zkl_test',
									children: null
							}
					]
			},
			{
					id: '1531515032367276034',
					code: 'test0531',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-05-31 13:56:52',
					updateTime: '2022-05-31 13:56:52',
					name: 'test0531',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/test0531',
					children: null
			},
			{
					id: '1536612590823473154',
					code: 'categoryKs',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-06-14 15:32:45',
					updateTime: '2022-06-14 15:32:45',
					name: 'ks分类',
					parentCode: null,
					sort: null,
					note: 'ks分类desc',
					fullPath: '/categoryKs',
					children: null
			},
			{
					id: '1537224635386294273',
					code: 'equipment',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-06-16 08:04:47',
					updateTime: '2022-06-16 08:04:47',
					name: '设备',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/equipment',
					children: [
							{
									id: '1537224752080220161',
									code: 'security',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-06-16 08:05:15',
									updateTime: '2022-06-16 08:05:15',
									name: '安全',
									parentCode: 'equipment',
									sort: null,
									note: '安全相关设备',
									fullPath: '/equipment/security',
									children: null
							},
							{
									id: '1537224908259323905',
									code: 'universalEnergy',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-06-16 08:05:53',
									updateTime: '2023-06-07 16:30:59',
									name: '泛能',
									parentCode: 'equipment',
									sort: null,
									note: '泛能相关设备',
									fullPath: '/equipment/universalEnergy',
									children: [
											{
													id: '1537325730011934721',
													code: 'CoolHeatEquipment',
													isDeleted: 0,
													createUser: null,
													updateUser: null,
													createTime: '2022-06-16 14:46:30',
													updateTime: '2022-06-16 14:46:30',
													name: '供冷热设备',
													parentCode: 'universalEnergy',
													sort: null,
													note: '供冷热设备',
													fullPath: '/equipment/universalEnergy/CoolHeatEquipment',
													children: null
											},
											{
													id: '1537326677576511490',
													code: 'auxiliaryEquipment',
													isDeleted: 0,
													createUser: null,
													updateUser: null,
													createTime: '2022-06-16 14:50:16',
													updateTime: '2022-06-16 14:50:16',
													name: '辅助设备',
													parentCode: 'universalEnergy',
													sort: null,
													note: '辅助设备',
													fullPath: '/equipment/universalEnergy/auxiliaryEquipment',
													children: null
											}
									]
							},
							{
									id: '1537225275151872002',
									code: 'carbonPeakNeutralization',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-06-16 08:07:20',
									updateTime: '2023-06-07 16:30:59',
									name: '双碳',
									parentCode: 'equipment',
									sort: null,
									note: '双碳相关设备',
									fullPath: '/equipment/carbonPeakNeutralization',
									children: [
											{
													id: '1537225654337925121',
													code: 'meter',
													isDeleted: 0,
													createUser: null,
													updateUser: null,
													createTime: '2022-06-16 08:08:50',
													updateTime: '2022-06-16 08:08:50',
													name: '仪表',
													parentCode: 'carbonPeakNeutralization',
													sort: null,
													note: '仪表设备',
													fullPath: '/equipment/carbonPeakNeutralization/meter',
													children: null
											}
									]
							},
							{
									id: '1537256957796020226',
									code: 'gateway',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-06-16 10:13:14',
									updateTime: '2022-06-16 10:13:14',
									name: '网关',
									parentCode: 'equipment',
									sort: null,
									note: '网关设备',
									fullPath: '/equipment/gateway',
									children: null
							}
					]
			},
			{
					id: '1537256521538072578',
					code: 'organizationalInformation',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-06-16 10:11:30',
					updateTime: '2022-06-16 10:11:30',
					name: '组织信息',
					parentCode: null,
					sort: null,
					note: '组织信息',
					fullPath: '/organizationalInformation',
					children: [
							{
									id: '1537256709048627202',
									code: 'businessClassification',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-06-16 10:12:14',
									updateTime: '2022-06-16 10:12:14',
									name: '业务分类',
									parentCode: 'organizationalInformation',
									sort: null,
									note: null,
									fullPath: '/organizationalInformation/businessClassification',
									children: null
							}
					]
			},
			{
					id: '1537613794810642434',
					code: 'test0617',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-06-17 09:51:10',
					updateTime: '2022-06-17 09:51:10',
					name: 'test0617',
					parentCode: null,
					sort: null,
					note: 'test0617',
					fullPath: '/test0617',
					children: null
			},
			{
					id: '1539046424647090177',
					code: 'testeee',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-06-21 08:43:56',
					updateTime: '2022-06-21 08:43:56',
					name: 'testeee',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/testeee',
					children: null
			},
			{
					id: '1539066487886364674',
					code: '测试2688',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-06-21 10:03:39',
					updateTime: '2022-06-21 10:03:39',
					name: 'test2688',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/测试2688',
					children: null
			},
			{
					id: '1539486144946552834',
					code: 'www123$',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-06-22 13:51:14',
					updateTime: '2023-06-07 17:42:55',
					name: 'ddddd',
					parentCode: null,
					sort: -1,
					note: '',
					fullPath: '/www123$',
					children: null
			},
			{
					id: '1539847595003584514',
					code: 'test0623',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-06-23 13:47:30',
					updateTime: '2022-06-23 13:47:30',
					name: 'test0623',
					parentCode: null,
					sort: null,
					note: 'test0623',
					fullPath: '/test0623',
					children: null
			},
			{
					id: '1544517572167999490',
					code: 'categoryKs002',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-07-06 11:04:19',
					updateTime: '2022-07-06 11:04:19',
					name: 'ks分类002',
					parentCode: null,
					sort: null,
					note: 'ks分类002Desc',
					fullPath: '/categoryKs002',
					children: null
			},
			{
					id: '1549324198301446145',
					code: 'sndevice',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-07-19 17:24:08',
					updateTime: '2022-11-15 11:07:07',
					name: 'cim数据',
					parentCode: null,
					sort: null,
					note: 'cim数据',
					fullPath: '/sndevice',
					children: [
							{
									id: '1549324528556748802',
									code: 'gasMainDevice',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-19 17:25:27',
									updateTime: '2022-11-02 10:54:37',
									name: '燃气主设备',
									parentCode: 'sndevice',
									sort: null,
									note: '燃气主设备',
									fullPath: '/sndevice/gasMainDevice',
									children: null
							},
							{
									id: '1549694513967837185',
									code: 'powerDistributionSpareParts',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-20 17:55:38',
									updateTime: '2022-11-02 10:54:37',
									name: '配电备品备件',
									parentCode: 'sndevice',
									sort: null,
									note: '配电备品备件',
									fullPath: '/sndevice/powerDistributionSpareParts',
									children: null
							},
							{
									id: '1549695176193912833',
									code: 'environmental',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-20 17:58:16',
									updateTime: '2022-11-02 10:54:37',
									name: '环境类',
									parentCode: 'sndevice',
									sort: null,
									note: '环境类',
									fullPath: '/sndevice/environmental',
									children: null
							},
							{
									id: '1549695446684577794',
									code: 'coldHeatAuxiliaryEquipment',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-20 17:59:21',
									updateTime: '2022-11-02 10:54:37',
									name: '供冷热辅机设备',
									parentCode: 'sndevice',
									sort: null,
									note: '供冷热辅机设备',
									fullPath: '/sndevice/coldHeatAuxiliaryEquipment',
									children: null
							},
							{
									id: '1551764113861742594',
									code: 'productionAuxiliaryEquipment',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 10:59:29',
									updateTime: '2022-11-02 10:54:37',
									name: '生产辅助设备',
									parentCode: 'sndevice',
									sort: null,
									note: '生产辅助设备',
									fullPath: '/sndevice/productionAuxiliaryEquipment',
									children: null
							},
							{
									id: '1551764507501367297',
									code: 'networkEquip',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:01:03',
									updateTime: '2022-11-02 10:54:37',
									name: '管网设备',
									parentCode: 'sndevice',
									sort: null,
									note: null,
									fullPath: '/sndevice/networkEquip',
									children: null
							},
							{
									id: '1551764646207000578',
									code: 'topologicalClass',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:01:36',
									updateTime: '2022-11-02 10:54:37',
									name: '拓扑类',
									parentCode: 'sndevice',
									sort: null,
									note: '拓扑类',
									fullPath: '/sndevice/topologicalClass',
									children: null
							},
							{
									id: '1551764888428056578',
									code: 'auxiliarySystemCIM',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:02:34',
									updateTime: '2022-11-02 10:54:37',
									name: '辅助系统',
									parentCode: 'sndevice',
									sort: null,
									note: '辅助系统',
									fullPath: '/sndevice/auxiliarySystemCIM',
									children: null
							},
							{
									id: '1551765096322928641',
									code: 'productionDevice',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:03:24',
									updateTime: '2022-11-02 10:54:37',
									name: '生产设备',
									parentCode: 'sndevice',
									sort: null,
									note: '生产设备',
									fullPath: '/sndevice/productionDevice',
									children: null
							},
							{
									id: '1551765222626004994',
									code: 'toolInstrument',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:03:54',
									updateTime: '2022-11-02 10:54:37',
									name: '工器具',
									parentCode: 'sndevice',
									sort: null,
									note: '工器具',
									fullPath: '/sndevice/toolInstrument',
									children: null
							},
							{
									id: '1551765417824718850',
									code: 'generalAuxiliaryEquipment',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:04:40',
									updateTime: '2022-11-02 10:54:37',
									name: '通用辅助设备',
									parentCode: 'sndevice',
									sort: null,
									note: '通用辅助设备',
									fullPath: '/sndevice/generalAuxiliaryEquipment',
									children: null
							},
							{
									id: '1551765694606839810',
									code: 'meterClass',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:05:46',
									updateTime: '2022-11-02 10:54:37',
									name: '仪表类',
									parentCode: 'sndevice',
									sort: null,
									note: '仪表类',
									fullPath: '/sndevice/meterClass',
									children: null
							},
							{
									id: '1551765911053897730',
									code: 'transformerAndDistributionMainEquipment',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:06:38',
									updateTime: '2022-11-02 10:54:37',
									name: '变配电主设备',
									parentCode: 'sndevice',
									sort: null,
									note: '变配电主设备',
									fullPath: '/sndevice/transformerAndDistributionMainEquipment',
									children: null
							},
							{
									id: '1551766061298061313',
									code: 'gasAuxiliaryEquipment',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:07:14',
									updateTime: '2022-11-02 10:54:37',
									name: '燃气辅助设备',
									parentCode: 'sndevice',
									sort: null,
									note: '燃气辅助设备',
									fullPath: '/sndevice/gasAuxiliaryEquipment',
									children: null
							},
							{
									id: '1551766215853969410',
									code: 'virtualClass',
									isDeleted: 0,
									createUser: '',
									updateUser: '',
									createTime: '2022-07-26 11:07:50',
									updateTime: '2022-11-02 10:54:37',
									name: '虚拟类',
									parentCode: 'sndevice',
									sort: -1,
									note: '',
									fullPath: '/sndevice/virtualClass',
									children: null
							},
							{
									id: '1551766413472796673',
									code: 'energyStorageDevice',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:08:38',
									updateTime: '2022-11-02 10:54:37',
									name: '储能设备',
									parentCode: 'sndevice',
									sort: null,
									note: '储能设备',
									fullPath: '/sndevice/energyStorageDevice',
									children: null
							},
							{
									id: '1551766876536541185',
									code: 'auxiliaryEquipmentForTransformerAndDistribution',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:10:28',
									updateTime: '2022-11-02 10:54:37',
									name: '变配电辅助设备',
									parentCode: 'sndevice',
									sort: null,
									note: '变配电辅助设备',
									fullPath: '/sndevice/auxiliaryEquipmentForTransformerAndDistribution',
									children: null
							},
							{
									id: '1551766972531576834',
									code: 'powerGenerationAssembly',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:10:51',
									updateTime: '2022-11-02 10:54:37',
									name: '发电设备',
									parentCode: 'sndevice',
									sort: null,
									note: '发电设备',
									fullPath: '/sndevice/powerGenerationAssembly',
									children: null
							},
							{
									id: '1551767106128547842',
									code: 'constructioneEquipment',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:11:23',
									updateTime: '2022-11-02 10:54:37',
									name: '施工设备',
									parentCode: 'sndevice',
									sort: null,
									note: '施工设备',
									fullPath: '/sndevice/constructioneEquipment',
									children: null
							},
							{
									id: '1551767186080370689',
									code: 'photovoltaicDevices',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:11:42',
									updateTime: '2022-11-02 10:54:37',
									name: '光伏设备',
									parentCode: 'sndevice',
									sort: null,
									note: '光伏设备',
									fullPath: '/sndevice/photovoltaicDevices',
									children: null
							},
							{
									id: '1551767287511224321',
									code: 'combustionEquipmentAndSystems',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:12:06',
									updateTime: '2022-11-02 10:54:37',
									name: '燃烧设备及系统',
									parentCode: 'sndevice',
									sort: null,
									note: '燃烧设备及系统',
									fullPath: '/sndevice/combustionEquipmentAndSystems',
									children: null
							},
							{
									id: '1551767389986459650',
									code: 'waterTreatingEquipmen',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-07-26 11:12:30',
									updateTime: '2022-11-02 10:54:37',
									name: '水处理设备',
									parentCode: 'sndevice',
									sort: null,
									note: '水处理设备',
									fullPath: '/sndevice/waterTreatingEquipmen',
									children: null
							},
							{
									id: '1572472597716500482',
									code: 'mainEquipmentForHeatingAndCooling',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-09-21 14:27:37',
									updateTime: '2022-11-02 10:54:37',
									name: '供冷热主设备',
									parentCode: 'sndevice',
									sort: null,
									note: '供冷热主设备',
									fullPath: '/sndevice/mainEquipmentForHeatingAndCooling',
									children: null
							},
							{
									id: '1585826152087150594',
									code: 'sewageTreatmentEquipment',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-10-28 10:49:52',
									updateTime: '2022-11-02 10:54:37',
									name: '污水处理设备',
									parentCode: 'sndevice',
									sort: null,
									note: '污水处理设备',
									fullPath: '/sndevice/sewageTreatmentEquipment',
									children: null
							}
					]
			},
			{
					id: '1549951132391747585',
					code: 'digitalEnergy',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-07-21 10:55:21',
					updateTime: '2022-07-21 10:55:21',
					name: '数能测试',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/digitalEnergy',
					children: null
			},
			{
					id: '1553637318197080066',
					code: 'xiangyunxi',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-07-31 15:02:56',
					updateTime: '2022-07-31 15:02:56',
					name: '象云析',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/xiangyunxi',
					children: null
			},
			{
					id: '1555096690043453442',
					code: 'tttttt',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-08-04 15:41:57',
					updateTime: '2023-06-07 17:42:55',
					name: 'rrrrr666',
					parentCode: null,
					sort: -1,
					note: '',
					fullPath: '/tttttt',
					children: null
			},
			{
					id: '1556439488130818049',
					code: 'zhj',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-08-08 08:37:45',
					updateTime: '2022-08-08 08:37:45',
					name: 'zhj测试',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/zhj',
					children: [
							{
									id: '1605391025267056642',
									code: '1605391025267056642',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-12-21 10:33:41',
									updateTime: '2022-12-21 10:33:41',
									name: 'zhj测试-子类目1',
									parentCode: 'zhj',
									sort: null,
									note: null,
									fullPath: '/zhj/1605391025267056642',
									children: null
							}
					]
			},
			{
					id: '1556879229032636417',
					code: 'testrootid',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-08-09 13:45:08',
					updateTime: '2022-08-09 13:45:08',
					name: '测试根节点类目',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/testrootid',
					children: null
			},
			{
					id: '1557563497740279809',
					code: 'ennstand',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-08-11 11:04:10',
					updateTime: '2022-08-11 11:04:10',
					name: '新奥恩牛',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/ennstand',
					children: [
							{
									id: '1608289007469633538',
									code: '1608289007469633538',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-12-29 10:29:14',
									updateTime: '2022-12-29 10:29:14',
									name: '20221229qzlTest',
									parentCode: 'ennstand',
									sort: null,
									note: null,
									fullPath: '/ennstand/1608289007469633538',
									children: null
							}
					]
			},
			{
					id: '1557897670455771137',
					code: 'ljwtest',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-08-12 09:12:03',
					updateTime: '2022-08-12 09:12:03',
					name: 'ljwTest',
					parentCode: null,
					sort: null,
					note: 'ljwtest',
					fullPath: '/ljwtest',
					children: null
			},
			{
					id: '1558968203238752258',
					code: 'mengniu',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-08-15 08:05:58',
					updateTime: '2023-06-07 17:42:54',
					name: '蒙牛项目',
					parentCode: null,
					sort: -1,
					note: '',
					fullPath: '/mengniu',
					children: null
			},
			{
					id: '1559733841041346562',
					code: 'iotEdge',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-08-17 10:48:20',
					updateTime: '2023-06-07 17:42:54',
					name: '新智网关及产品',
					parentCode: null,
					sort: -1,
					note: '边缘',
					fullPath: '/iotEdge',
					children: null
			},
			{
					id: '1560416851520708610',
					code: 'autotest',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-08-19 08:02:23',
					updateTime: '2023-06-07 17:42:54',
					name: '测试类目',
					parentCode: null,
					sort: -1,
					note: '说明',
					fullPath: '/autotest',
					children: [
							{
									id: '1560805283174633473',
									code: 'autotest001',
									isDeleted: 0,
									createUser: '',
									updateUser: '',
									createTime: '2022-08-20 09:45:52',
									updateTime: '2022-08-20 09:45:52',
									name: '测试类目子集',
									parentCode: 'autotest',
									sort: -1,
									note: '说明',
									fullPath: '/autotest/autotest001',
									children: null
							}
					]
			},
			{
					id: '1561634075422068737',
					code: 'testdelcat2A',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-08-22 16:39:11',
					updateTime: '2023-06-07 17:42:54',
					name: '测试删除类目',
					parentCode: null,
					sort: -1,
					note: '',
					fullPath: '/testdelcat2A',
					children: null
			},
			{
					id: '1561972515850227713',
					code: 'sh888888',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-08-23 15:04:02',
					updateTime: '2022-08-23 15:04:02',
					name: '物联交付工具',
					parentCode: null,
					sort: null,
					note: '物联交付工具专用',
					fullPath: '/sh888888',
					children: [
							{
									id: '1561972633747918849',
									code: 'sh8888801',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-08-23 15:04:30',
									updateTime: '2022-08-23 15:04:30',
									name: '物联交付工具专用',
									parentCode: 'sh888888',
									sort: null,
									note: '物联交付工具专用',
									fullPath: '/sh888888/sh8888801',
									children: null
							}
					]
			},
			{
					id: '1562981462816137217',
					code: 'XLM',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-08-26 09:53:14',
					updateTime: '2022-08-26 09:53:14',
					name: 'XLM',
					parentCode: null,
					sort: null,
					note: 'XLM123abc 测试',
					fullPath: '/XLM',
					children: null
			},
			{
					id: '1564045222397943810',
					code: 'testhuiguitesthuiguitesthuiguitesthuiguitesthuig',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-08-29 08:20:14',
					updateTime: '2023-06-07 17:42:54',
					name: '测试回归测试回归测试',
					parentCode: null,
					sort: -1,
					note: '测试回归-说明测试回归-说明测试回归-说明测试回归-说明测试回归-说明测试回归-说明测试回归-说明测试回归-说明测试回归-说明测试回归-说明测试回归-说明测试回归-说明测试回归-说明测试回归-说明测试',
					fullPath: '/testhuiguitesthuiguitesthuiguitesthuiguitesthuig',
					children: null
			},
			{
					id: '1564077849918119937',
					code: 'testaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-08-29 10:29:53',
					updateTime: '2022-08-29 10:29:53',
					name: 'test长度',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/testaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
					children: null
			},
			{
					id: '1565163604920852481',
					code: 'test0089',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-09-01 10:24:17',
					updateTime: '2022-09-01 10:24:17',
					name: '设备联调',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/test0089',
					children: null
			},
			{
					id: '1565246901319450626',
					code: 'ZXC',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-09-01 15:55:16',
					updateTime: '2023-06-07 17:42:54',
					name: 'ZXC',
					parentCode: null,
					sort: -1,
					note: '',
					fullPath: '/ZXC',
					children: [
							{
									id: '1565249866797236226',
									code: 'ZXC1',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-09-01 16:07:03',
									updateTime: '2022-09-01 16:07:03',
									name: 'ZXC1',
									parentCode: 'ZXC',
									sort: null,
									note: '111111111111111111111111111111111111111111111111111111111111111~!@#$%^&*()_+-={}[]\\|\';":?><,./',
									fullPath: '/ZXC/ZXC1',
									children: null
							}
					]
			},
			{
					id: '1566595252199702530',
					code: 'DEC',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-09-05 09:13:08',
					updateTime: '2022-09-05 09:13:08',
					name: 'DEC',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/DEC',
					children: null
			},
			{
					id: '1566991353562087425',
					code: 'MnTestYyds',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-09-06 11:27:06',
					updateTime: '2022-09-06 11:27:06',
					name: '蒙牛测试专用YYDS',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/MnTestYyds',
					children: null
			},
			{
					id: '1567035777151221761',
					code: 'status',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-09-06 14:23:38',
					updateTime: '2022-09-06 14:23:38',
					name: '设备状态测试',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/status',
					children: null
			},
			{
					id: '1567320887746469889',
					code: 'testauto',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-09-07 09:16:33',
					updateTime: '2022-09-07 09:16:33',
					name: '自动化测试专用(勿动)',
					parentCode: null,
					sort: null,
					note: '说明',
					fullPath: '/testauto',
					children: null
			},
			{
					id: '1567750535068360706',
					code: 'test2688',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-09-08 13:43:49',
					updateTime: '2022-09-08 13:43:49',
					name: '2688测试',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/test2688',
					children: null
			},
			{
					id: '1570675492719001601',
					code: 'HGC',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-09-16 15:26:33',
					updateTime: '2023-06-07 17:42:54',
					name: 'HGC',
					parentCode: null,
					sort: -1,
					note: '说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明',
					fullPath: '/HGC',
					children: [
							{
									id: '1570675783900168193',
									code: 'HGC1',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-09-16 15:27:43',
									updateTime: '2022-09-16 15:27:43',
									name: 'HGC1',
									parentCode: 'HGC',
									sort: null,
									note: '说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明说明~!21423FWEVGARVavaaevsavarsba',
									fullPath: '/HGC/HGC1',
									children: null
							}
					]
			},
			{
					id: '1572772702436818945',
					code: 'JFGJ8888888',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-09-22 10:20:07',
					updateTime: '2023-06-07 17:42:54',
					name: 'AAA交付工具专用勿动',
					parentCode: null,
					sort: -1,
					note: 'JFGJ专用勿动',
					fullPath: '/JFGJ8888888',
					children: [
							{
									id: '1572882224253861890',
									code: 'WG990230202',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-09-22 17:35:19',
									updateTime: '2022-09-22 17:35:19',
									name: '网关设备模型专用',
									parentCode: 'JFGJ8888888',
									sort: null,
									note: '交付工具网关设备模型专用',
									fullPath: '/JFGJ8888888/WG990230202',
									children: null
							},
							{
									id: '1572882347310546945',
									code: 'Z0303903932',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-09-22 17:35:48',
									updateTime: '2022-09-22 17:35:48',
									name: '网关子设备模型专用',
									parentCode: 'JFGJ8888888',
									sort: null,
									note: '交付工具网关子设备模型专用',
									fullPath: '/JFGJ8888888/Z0303903932',
									children: null
							},
							{
									id: '1572882468307828737',
									code: 'L9009100',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-09-22 17:36:17',
									updateTime: '2022-09-22 17:36:17',
									name: '直连设备模型专用',
									parentCode: 'JFGJ8888888',
									sort: null,
									note: '交付工具直连设备模型专用',
									fullPath: '/JFGJ8888888/L9009100',
									children: null
							}
					]
			},
			{
					id: '1572783767358898177',
					code: 'WL007',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-09-22 11:04:05',
					updateTime: '2023-06-07 16:30:59',
					name: '硬件测试',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/WL007',
					children: [
							{
									id: '1661625063906594818',
									code: '1661625063906594818',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-05-25 14:47:41',
									updateTime: '2023-05-25 14:47:41',
									name: '网关',
									parentCode: 'WL007',
									sort: null,
									note: null,
									fullPath: '/WL007/1661625063906594818',
									children: null
							},
							{
									id: '1661625450407514114',
									code: '1661625450407514114',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-05-25 14:49:13',
									updateTime: '2023-05-25 14:49:13',
									name: '子设备',
									parentCode: 'WL007',
									sort: null,
									note: null,
									fullPath: '/WL007/1661625450407514114',
									children: null
							}
					]
			},
			{
					id: '1574231499374108673',
					code: 'Boiler',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-09-26 10:56:51',
					updateTime: '2022-09-26 10:56:51',
					name: '锅炉设备',
					parentCode: null,
					sort: null,
					note: '锅炉设备',
					fullPath: '/Boiler',
					children: null
			},
			{
					id: '1574235273429819393',
					code: 'TEST_2688',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-09-26 11:11:51',
					updateTime: '2022-09-26 11:11:51',
					name: '能源数据导入',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/TEST_2688',
					children: null
			},
			{
					id: '1575269744413347842',
					code: 'zhjtest',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-09-29 07:42:28',
					updateTime: '2022-09-29 07:42:28',
					name: 'zhj测试',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/zhjtest',
					children: [
							{
									id: '1607180320411787265',
									code: '1607180320411787265',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-12-26 09:03:43',
									updateTime: '2023-06-07 16:30:59',
									name: 'zhj测试-子目录1',
									parentCode: 'zhjtest',
									sort: null,
									note: null,
									fullPath: '/zhjtest/1607180320411787265',
									children: [
											{
													id: '1608740488832393218',
													code: '1608740488832393218',
													isDeleted: 0,
													createUser: null,
													updateUser: null,
													createTime: '2022-12-30 16:23:16',
													updateTime: '2023-06-07 16:30:59',
													name: 'zhj测试-子目录1-子目录2',
													parentCode: '1607180320411787265',
													sort: null,
													note: null,
													fullPath: '/zhjtest/1607180320411787265/1608740488832393218',
													children: [
															{
																	id: '1608740560550797314',
																	code: '1608740560550797314',
																	isDeleted: 0,
																	createUser: null,
																	updateUser: null,
																	createTime: '2022-12-30 16:23:33',
																	updateTime: '2022-12-30 16:23:33',
																	name: 'zhj测试-子目录1-子目录2-子目录1',
																	parentCode: '1608740488832393218',
																	sort: null,
																	note: null,
																	fullPath: '/zhjtest/1607180320411787265/1608740488832393218/1608740560550797314',
																	children: [
																			{
																					id: '1608742682365304834',
																					code: '1608742682365304834',
																					isDeleted: 0,
																					createUser: null,
																					updateUser: null,
																					createTime: '2022-12-30 16:31:59',
																					updateTime: '2022-12-30 16:31:59',
																					name: 'zhj测试-aaab',
																					parentCode: '1608740560550797314',
																					sort: null,
																					note: null,
																					fullPath: '/zhjtest/1607180320411787265/1608740488832393218/1608740560550797314/1608742682365304834',
																					children: null
																			}
																	]
															}
													]
											}
									]
							}
					]
			},
			{
					id: '1579359318416625666',
					code: 'test1010',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-10-10 14:32:58',
					updateTime: '2023-06-07 17:42:54',
					name: '测试专用',
					parentCode: null,
					sort: -1,
					note: '测试专用',
					fullPath: '/test1010',
					children: null
			},
			{
					id: '1585070419397656578',
					code: 'ElectronicEquipment',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-10-26 08:46:51',
					updateTime: '2022-10-26 08:46:51',
					name: '电子设备',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/ElectronicEquipment',
					children: null
			},
			{
					id: '1600378507360509953',
					code: 'chongfuceshi1',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-12-07 14:35:44',
					updateTime: '2022-12-07 14:35:44',
					name: '重复测试',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/chongfuceshi1',
					children: null
			},
			{
					id: '1603200160226385921',
					code: 'deviceJoin',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-12-15 09:27:58',
					updateTime: '2023-06-07 17:42:54',
					name: '设备接入',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/deviceJoin',
					children: null
			},
			{
					id: '1603215686998728705',
					code: 'LHX1215',
					isDeleted: 0,
					createUser: '',
					updateUser: '',
					createTime: '2022-12-15 10:29:40',
					updateTime: '2023-06-07 17:42:54',
					name: 'LHX场景梳理改',
					parentCode: null,
					sort: -1,
					note: '',
					fullPath: '/LHX1215',
					children: null
			},
			{
					id: '1605114335081046018',
					code: '1605114335081046018',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-12-20 16:14:13',
					updateTime: '2023-06-07 17:42:52',
					name: 'sectest1',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1605114335081046018',
					children: [
							{
									id: '1605174854693462018',
									code: '1605174854693462018',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2022-12-20 20:14:42',
									updateTime: '2022-12-20 20:15:12',
									name: 'wwww',
									parentCode: '1605114335081046018',
									sort: null,
									note: null,
									fullPath: '/1605114335081046018/1605174854693462018',
									children: null
							}
					]
			},
			{
					id: '1605445145931849730',
					code: '1605445145931849730',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-12-21 14:08:45',
					updateTime: '2023-06-07 17:42:54',
					name: '测试用lgl',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1605445145931849730',
					children: [
							{
									id: '1628550543140233218',
									code: '1628550543140233218',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-02-23 08:21:21',
									updateTime: '2023-02-23 08:21:21',
									name: '第三方',
									parentCode: '1605445145931849730',
									sort: null,
									note: null,
									fullPath: '/1605445145931849730/1628550543140233218',
									children: null
							}
					]
			},
			{
					id: '1606203117209427969',
					code: '1606203117209427969',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-12-23 16:20:39',
					updateTime: '2023-06-07 17:42:54',
					name: 'ks类目001',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1606203117209427969',
					children: null
			},
			{
					id: '1608627131836047361',
					code: '1608627131836047361',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2022-12-30 08:52:49',
					updateTime: '2023-06-07 17:42:54',
					name: 'test12301',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1608627131836047361',
					children: null
			},
			{
					id: '1620964350252851202',
					code: '1620964350252851202',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-02-02 09:56:31',
					updateTime: '2023-06-07 17:42:53',
					name: '质采Test',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1620964350252851202',
					children: null
			},
			{
					id: '1622787750713663489',
					code: '1622787750713663489',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-02-07 10:42:04',
					updateTime: '2023-06-07 17:42:53',
					name: 'zpc',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1622787750713663489',
					children: null
			},
			{
					id: '1622829919373664257',
					code: '1622829919373664257',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-02-07 13:29:38',
					updateTime: '2023-06-07 17:42:53',
					name: '没',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1622829919373664257',
					children: null
			},
			{
					id: '1622856443036475393',
					code: '1622856443036475393',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-02-07 15:15:01',
					updateTime: '2023-06-07 17:42:53',
					name: 'PE管_hff测试',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1622856443036475393',
					children: [
							{
									id: '1623213653360943105',
									code: '1623213653360943105',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-02-08 14:54:27',
									updateTime: '2023-02-08 14:54:27',
									name: 'PE管_D50',
									parentCode: '1622856443036475393',
									sort: null,
									note: null,
									fullPath: '/1622856443036475393/1623213653360943105',
									children: null
							}
					]
			},
			{
					id: '1622872211279093761',
					code: '1622872211279093761',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-02-07 16:17:41',
					updateTime: '2023-06-07 17:42:53',
					name: 'lgl测试类目',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1622872211279093761',
					children: null
			},
			{
					id: '1623585897962577921',
					code: '1623585897962577921',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-02-09 15:33:37',
					updateTime: '2023-06-07 17:42:53',
					name: '工业报警器_hff测试',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1623585897962577921',
					children: null
			},
			{
					id: '1632979041703469058',
					code: '1632979041703469058',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-03-07 13:38:37',
					updateTime: '2023-06-07 17:42:53',
					name: 'shx',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1632979041703469058',
					children: [
							{
									id: '1632979159521468417',
									code: '1632979159521468417',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-03-07 13:39:05',
									updateTime: '2023-03-07 13:39:05',
									name: 'shx2',
									parentCode: '1632979041703469058',
									sort: null,
									note: null,
									fullPath: '/1632979041703469058/1632979159521468417',
									children: null
							}
					]
			},
			{
					id: '1650758336005967874',
					code: '1650758336005967874',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-04-25 15:07:11',
					updateTime: '2023-06-07 17:42:53',
					name: 'test0425',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1650758336005967874',
					children: null
			},
			{
					id: '1651520051877322754',
					code: '1651520051877322754',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-04-27 17:33:58',
					updateTime: '2023-06-07 17:42:53',
					name: '演示勿删',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1651520051877322754',
					children: null
			},
			{
					id: '1654029749792641026',
					code: '1654029749792641026',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-05-04 15:46:37',
					updateTime: '2023-06-07 17:42:53',
					name: '测试0504',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1654029749792641026',
					children: null
			},
			{
					id: '1656120344740855810',
					code: '1656120344740855810',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-05-10 10:13:54',
					updateTime: '2023-06-07 17:42:53',
					name: '空压场景(勿动)',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1656120344740855810',
					children: [
							{
									id: '1656120526593294338',
									code: '1656120526593294338',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-05-10 10:14:37',
									updateTime: '2023-05-10 10:14:37',
									name: '后处理设备',
									parentCode: '1656120344740855810',
									sort: null,
									note: null,
									fullPath: '/1656120344740855810/1656120526593294338',
									children: null
							},
							{
									id: '1656120615831306242',
									code: '1656120615831306242',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-05-10 10:14:58',
									updateTime: '2023-05-10 10:14:58',
									name: '仪表',
									parentCode: '1656120344740855810',
									sort: null,
									note: null,
									fullPath: '/1656120344740855810/1656120615831306242',
									children: null
							},
							{
									id: '1656120687704899586',
									code: '1656120687704899586',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-05-10 10:15:15',
									updateTime: '2023-05-10 10:15:15',
									name: '联控设备',
									parentCode: '1656120344740855810',
									sort: null,
									note: null,
									fullPath: '/1656120344740855810/1656120687704899586',
									children: null
							}
					]
			},
			{
					id: '1656830982005567490',
					code: '1656830982005567490',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-05-12 09:17:43',
					updateTime: '2023-06-07 17:42:53',
					name: '一级类目修改',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1656830982005567490',
					children: null
			},
			{
					id: '1661552225749159938',
					code: '1661552225749159938',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-05-25 09:58:15',
					updateTime: '2023-06-07 17:42:53',
					name: '测试类目_0525',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1661552225749159938',
					children: null
			},
			{
					id: '1663070487721869314',
					code: '1663070487721869314',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-05-29 14:31:17',
					updateTime: '2023-06-07 17:42:52',
					name: 'PLC物模型勿动',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1663070487721869314',
					children: [
							{
									id: '1663070756249600001',
									code: '1663070756249600001',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-05-29 14:32:21',
									updateTime: '2023-06-07 16:25:21',
									name: '西门子PLC物模型勿动',
									parentCode: '1663070487721869314',
									sort: null,
									note: null,
									fullPath: '/1663070487721869314/1663070756249600001',
									children: null
							}
					]
			},
			{
					id: '1664521589216174082',
					code: '1664521589216174082',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-06-02 14:37:26',
					updateTime: '2023-06-07 17:42:53',
					name: 'hqy',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1664521589216174082',
					children: null
			},
			{
					id: '1665616494810419202',
					code: '1665616494810419202',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-06-05 15:08:12',
					updateTime: '2023-06-07 17:42:52',
					name: '数能标准物模型(勿动)',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1665616494810419202',
					children: [
							{
									id: '1665616561285943297',
									code: '1665616561285943297',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-06-05 15:08:28',
									updateTime: '2023-06-07 16:24:29',
									name: '空压场景勿动',
									parentCode: '1665616494810419202',
									sort: null,
									note: null,
									fullPath: '/1665616494810419202/1665616561285943297',
									children: null
							},
							{
									id: '1665616693108723714',
									code: '1665616693108723714',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-06-05 15:08:59',
									updateTime: '2023-06-07 16:24:29',
									name: '锅炉勿动',
									parentCode: '1665616494810419202',
									sort: null,
									note: null,
									fullPath: '/1665616494810419202/1665616693108723714',
									children: null
							},
							{
									id: '1665616829130002433',
									code: '1665616829130002433',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-06-05 15:09:32',
									updateTime: '2023-06-07 16:24:29',
									name: '通用表计类勿动',
									parentCode: '1665616494810419202',
									sort: null,
									note: null,
									fullPath: '/1665616494810419202/1665616829130002433',
									children: null
							},
							{
									id: '1666614870391619585',
									code: '1666614870391619585',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-06-08 09:15:23',
									updateTime: '2023-06-08 09:15:23',
									name: '暖通勿动',
									parentCode: '1665616494810419202',
									sort: null,
									note: null,
									fullPath: '/1665616494810419202/1666614870391619585',
									children: null
							},
							{
									id: '1666614912229801986',
									code: '1666614912229801986',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-06-08 09:15:33',
									updateTime: '2023-06-08 09:15:33',
									name: '光伏勿动',
									parentCode: '1665616494810419202',
									sort: null,
									note: null,
									fullPath: '/1665616494810419202/1666614912229801986',
									children: null
							}
					]
			},
			{
					id: '1666366014059556865',
					code: '1666366014059556865',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-06-07 16:46:32',
					updateTime: '2023-06-07 17:42:51',
					name: 'SCADA物模型勿动',
					parentCode: null,
					sort: null,
					note: null,
					fullPath: '/1666366014059556865',
					children: null
			},
			{
					id: '1668137327344164865',
					code: '1668137327344164865',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-06-12 14:05:06',
					updateTime: '2023-06-12 14:05:06',
					name: '川通测试类目',
					parentCode: '',
					sort: null,
					note: null,
					fullPath: '/1668137327344164865',
					children: [
							{
									id: '1668137408352952322',
									code: '1668137408352952322',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-06-12 14:05:25',
									updateTime: '2023-06-12 14:05:25',
									name: '空压',
									parentCode: '1668137327344164865',
									sort: null,
									note: null,
									fullPath: '/1668137327344164865/1668137408352952322',
									children: null
							}
					]
			},
			{
					id: '1668882837607251970',
					code: '1668882837607251970',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-06-14 15:27:29',
					updateTime: '2023-06-14 15:27:29',
					name: '630演示_能源站动态需供平衡',
					parentCode: '',
					sort: null,
					note: null,
					fullPath: '/1668882837607251970',
					children: null
			},
			{
					id: '1671052174246600706',
					code: '1671052174246600706',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-06-20 15:07:39',
					updateTime: '2023-06-20 15:07:39',
					name: '展厅演示勿删',
					parentCode: '',
					sort: null,
					note: null,
					fullPath: '/1671052174246600706',
					children: null
			},
			{
					id: '1673590319051505665',
					code: '1673590319051505665',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-06-27 15:13:20',
					updateTime: '2023-06-27 15:13:20',
					name: 'chen_test',
					parentCode: '',
					sort: null,
					note: null,
					fullPath: '/1673590319051505665',
					children: [
							{
									id: '1676108099900579841',
									code: '1676108099900579841',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-07-04 13:58:06',
									updateTime: '2023-07-04 13:58:06',
									name: '类目1',
									parentCode: '1673590319051505665',
									sort: null,
									note: null,
									fullPath: '/1673590319051505665/1676108099900579841',
									children: null
							},
							{
									id: '1681576143007043586',
									code: '1681576143007043586',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-07-19 16:06:09',
									updateTime: '2023-07-19 16:06:09',
									name: 'mulu',
									parentCode: '1673590319051505665',
									sort: null,
									note: null,
									fullPath: '/1673590319051505665/1681576143007043586',
									children: null
							},
							{
									id: '1681579224411197441',
									code: '1681579224411197441',
									isDeleted: 0,
									createUser: null,
									updateUser: null,
									createTime: '2023-07-19 16:18:23',
									updateTime: '2023-07-19 16:18:23',
									name: '1111111111',
									parentCode: '1673590319051505665',
									sort: null,
									note: null,
									fullPath: '/1673590319051505665/1681579224411197441',
									children: null
							}
					]
			},
			{
					id: '1681566612457709570',
					code: '1681566612457709570',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-07-19 15:28:16',
					updateTime: '2023-07-19 15:28:16',
					name: '测试类目_1991-02-20',
					parentCode: '',
					sort: null,
					note: null,
					fullPath: '/1681566612457709570',
					children: null
			},
			{
					id: '1681566862022991874',
					code: '1681566862022991874',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-07-19 15:29:16',
					updateTime: '2023-07-19 15:29:16',
					name: '测试类目_2022-04-02',
					parentCode: '',
					sort: null,
					note: null,
					fullPath: '/1681566862022991874',
					children: null
			},
			{
					id: '1681566918532849666',
					code: '1681566918532849666',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-07-19 15:29:29',
					updateTime: '2023-07-19 15:29:29',
					name: '测试类目_801121',
					parentCode: '',
					sort: null,
					note: null,
					fullPath: '/1681566918532849666',
					children: null
			},
			{
					id: '1681567126838763522',
					code: '1681567126838763522',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-07-19 15:30:19',
					updateTime: '2023-07-19 15:30:19',
					name: '测试类目_20210915',
					parentCode: '',
					sort: null,
					note: null,
					fullPath: '/1681567126838763522',
					children: null
			},
			{
					id: '1681575593880248322',
					code: '1681575593880248322',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-07-19 16:03:58',
					updateTime: '2023-07-19 16:03:58',
					name: 'fnw001',
					parentCode: '',
					sort: null,
					note: null,
					fullPath: '/1681575593880248322',
					children: null
			},
			{
					id: '1681577338358390786',
					code: '1681577338358390786',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-07-19 16:10:54',
					updateTime: '2023-07-19 16:10:54',
					name: '专属化目录',
					parentCode: '',
					sort: null,
					note: null,
					fullPath: '/1681577338358390786',
					children: null
			},
			{
					id: '1681588143386755074',
					code: '1681588143386755074',
					isDeleted: 0,
					createUser: null,
					updateUser: null,
					createTime: '2023-07-19 16:53:50',
					updateTime: '2023-07-19 16:53:50',
					name: 'wygtest001',
					parentCode: '',
					sort: null,
					note: null,
					fullPath: '/1681588143386755074',
					children: null
			}
	],
	msg: '操作成功'
};


interface FoodNode {
  name: string;
  children?: FoodNode[];
}

@Component({
	selector: 'dynamic-tree-menu',
	templateUrl: './dynamic-tree-menu.component.html',
	styleUrls: ['./dynamic-tree-menu.component.css']
})
export class DynamicTreeMenuComponent implements OnInit {
	@ViewChild(MatTree) tree: MatTree<any>;

	constructor(private http: HttpClient,private changeDetector: ChangeDetectorRef,) {
		this.dataSource.data = lodash.cloneDeep(RESULT.data);
  }
	treeControl = new NestedTreeControl<FoodNode>(node => node.children);
	dataSource = new MatTreeNestedDataSource<FoodNode>();

	collapaseNodes=[];


  hasChild = (_: number, _nodeData: FoodNode) => (!!_nodeData['children'] && _nodeData['children'].length > 0);

	onToggle(node){
		const index=this.collapaseNodes.findIndex(n=>n===node.id);
		const isExpanded=index>-1?false:true;
		if(isExpanded){
			this.collapaseNodes.push(node.id);
			console.log(this.collapaseNodes);
			// this.treeControl.collapse(node);
		}else{
			this.collapaseNodes.splice(index,1);
			console.log(this.collapaseNodes);
			// this.treeControl.expand(node);
		}
	}

	onClick(node){
		if(!node.code){return;}
		console.log(this.treeControl.isExpanded(node));
		const _this=this;
		this.http.post('/entityApi/entityType/list/v2', { current: 1, size: 100, categoryCode: node.code,type:'all' }).subscribe((res1: any) => {
			console.log(res1.data.records);
			// 找到当前节点，并给children 塞值
			const dataSource=lodash.cloneDeep(RESULT.data);
			if(res1.data && res1.data.records&&res1.data.records.length>0){
				this.findNodeById(node.id,dataSource,res1.data.records);
			}

			this.dataSource.data = dataSource;
			this.treeControl.expand(node);
			console.log(this.treeControl.isExpanded(node));
		});
	}

	findNodeById(id, arr, values) {
		for (let i = 0; i < arr.length; i++) {
			const node = arr[i];
			if (node.id === id) {
				if (node.children) {
					values.map(v=>{
						node.children.push(v);
					});
				} else {
					node.children = values;
				}
				return node;
			} else if (node.children) {
				const result = this.findNodeById(id, node.children, values);
				if (result) {
					return result;
				}
			}
		}
		return null;
	}


  ngOnInit(){
		console.log('初始化');
  }
}

